﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tasks
{
    public static class StringExtensions
    {

        public static string EnsureEndsWith(this string str, string value)
        {
            if (String.IsNullOrEmpty(str)) return str;
            if (str.EndsWith(value)) return str;
            return str + value;
        }

    }
}
